﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace ServiceInfrastructure.Models.NewsModels.Models
{
    [DataContract(Namespace = ServiceConstants.ServiceConstants.NewsDatacontractnamespace)]
    public class Feed
    {
        [DataMember(Order = 1)]
        public Guid Id { get; set; }
        
        [DataMember(Order = 2)]
        public string BaseUri { get; set; }
        
        [DataMember(Order = 3)]
        public string Copyright { get; set; }
        
        [DataMember(Order = 4)]
        public DateTime LastUpdatedTime { get; set; }
        
        [DataMember(Order = 5)]
        public string Title { get; set; }
        
        [DataMember(Order = 6)]
        public string Description { get; set; }
        
        [DataMember(Order = 7)]
        public string ImageUrl { get; set; }
        
        [DataMember(Order = 8)]
        public string Language { get; set; }

        [DataMember(Order = 9)]
        public ICollection<Link> Links { get; set; }

        [DataMember(Order = 10)]
        public ICollection<Person> Persons { get; set; }

        [DataMember(Order = 11)]
        public ICollection<Category> Categories { get; set; }

        [DataMember(Order = 12)]
        public ICollection<NewsDataItem> Items { get; set; }
    }
}
